# filter

list_x = [1, 2, 3, 0, 1, 2, 0, 34, 0]
list_U = ['a', 'B', 'c', 'F', 'G', 'd']
newArray = filter(lambda x: x, list_x)
print(list(newArray))